import request from "@/util/request";
import jiuquanRequest from '@/util/jiuquanRequest.js'
/**
 * @description 培训机构列表
 * @returns {Promise}
 */
export function getUserTrainList(data) {
	return jiuquanRequest({
		url: '/jiuquan/train/getUserTrainLists',
		method: 'GET',
		data
	})
}

/**
 * @description 机构详情
 * @returns {Promise}
 */
export function getTrainByIdApi(data) {
	return jiuquanRequest({
		url: '/jiuquan/train/getUserTrainByIds',
		method: 'GET',
		data
	})
}
/**
 * @description 培训专业列表
 * @returns {Promise}
 */
export function getSpecialityByTrainId(data) {
	return jiuquanRequest({
		url: '/jiuquan/speciality/getSpecialityByTrainId',
		method: 'GET',
		data
	})
}
/**
 * @description 查询七县市
 * @returns {Promise}
 */
export function getAreasList(data) {
	return jiuquanRequest({
		url: '/jiuquan/config/getAreasList',
		method: 'GET',
		data
	})
}
/**
 * @description 用户报名
 * @returns {Promise}
 */

export function userAddTrainPeopleApi(data) {
	return jiuquanRequest({
		url: '/jiuquan/trainPeople/userAddTrainPeople',
		method: 'post',
		data
	}, true)
}
/**
 * @description 培训意向表单提交
 * @returns {Promise}
 */

export function userAddTrainIntentionApi(data) {
	return jiuquanRequest({
		url: '/jiuquan/train/addAndUpdateTrainIntention',
		method: 'post',
		data
	}, true)
}

/**
 * @description 查询报名人员列表
 * @returns {Promise}
 */
export function getUserTrainListApi(data) {
	return jiuquanRequest({
		url: '/jiuquan/trainPeople/getUserTrainList',
		method: 'GET',
		data
	})
}

/**
 * @description 查询报名人员详情
 * @returns {Promise}
 */
export function getUserTrainById(data) {
	return jiuquanRequest({
		url: '/jiuquan/trainPeople/getUserTrainById',
		method: 'GET',
		data
	})
}
/**
 * @description 我的贷款列表
 * @returns {Promise}
 */
export function getUserApplyLoanList(data) {
	return jiuquanRequest({
		url: '/jiuquan/applyLoan/getUserApplyLoanList',
		method: 'GET',
		data
	})
}
/**
 * @description 我的贷款详情
 * @returns {Promise}
 */
export function getApplyLoanById(data) {
	return jiuquanRequest({
		url: '/jiuquan/applyLoan/getApplyLoanById',
		method: 'GET',
		data
	})
}

/**
 * @description 入孵申请接口
 * @returns {Promise}
 */

export function addSiteApplyForList(data) {
	return jiuquanRequest({
		url: '/jiuquan/site/addSiteApplyForList',
		method: 'post',
		data
	}, true)
}
/**
 * @description 创业培训和技能培训详情
 * @returns {Promise}
 */
export function getTrainSpecialityById(data) {
	return jiuquanRequest({
		url: '/jiuquan/trainSpeciality/getTrainSpecialityById',
		method: 'GET',
		data
	})
}